package com.ruoyi.project.system.domain;

import java.util.List;

/**
 * 预约统计结果DTO（适配前端格式）
 */
public class ReservationStatsDTO {
    // 一级科室汇总统计（对应前端 stats 字段）
    private List<DeptStats> stats;
    // 总剩余预约名额（对应前端 total_remaining 字段）
    private Integer total_remaining;

    // 手动 Getter/Setter
    public List<DeptStats> getStats() {
        return stats;
    }

    public void setStats(List<DeptStats> stats) {
        this.stats = stats;
    }

    public Integer getTotal_remaining() {
        return total_remaining;
    }

    public void setTotal_remaining(Integer total_remaining) {
        this.total_remaining = total_remaining;
    }

    /**
     * 科室统计子项（一级科室 + 剩余名额）
     */
    public static class DeptStats {
        private String department; // 一级科室名（如“内科”“外科”）
        private Integer remaining; // 该科室总剩余名额

        // 手动 Getter/Setter
        public String getDepartment() {
            return department;
        }

        public void setDepartment(String department) {
            this.department = department;
        }

        public Integer getRemaining() {
            return remaining;
        }

        public void setRemaining(Integer remaining) {
            this.remaining = remaining;
        }
    }
}